#!/usr/bin/env python
# -*- coding:utf-8 -*-

class sqlmoudle:

    def __init__(self):
        """
           host
          string, host to connect
          
        user
          string, user to connect as

        passwd
          string, password to use

        db
          string, database to use

        port
          integer, TCP/IP port to connect to
        """
        self.host = ''
        self.user = ''
        self.passwd = ''
        self.db = ''
        self.port = 3306
        self.charset = 'utf8'

    # @property
    # def get_serveraddress(self):
    #     return self._serveraddress
    #
    # @get_serveraddress.setter
    # def set_serveraddress(self,serveraddress):
    #     self._serveraddress = serveraddress
    #
    # @get_serveraddress.deleter
    # def del_serveraddress(self):
    #     del self._serveraddress


    def todict(self):
        return self.__dict__

